try:
    num = int(input("请输入数字:"))
except ValueError:
    print("输入非整数，不符合要求")
else:
    if num % 2 == 0:
        print('偶数')
    else:
        print('奇数')
finally:
    print('程序运行结束')
